package day6;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class Arr9 {
    public static void main(String[] args) {
        int []ar={1,2,22,55,23,14,233,6,66,145,10,16};
        int[] a = Arrays.copyOf(ar, 5);
        System.out.println(Arrays.toString(a));
        int[] a2 = Arrays.copyOf(ar, 40);
        System.out.println(Arrays.toString(a2));
    }
}
